#include <stdio.h>

#include <stdlib.h>

int ContinueMaxStr(char *src)
{
    int len = 0;
    int MaxLen = 0;
    
    while (*src != '\0')
    {
        while ((*src >= '0' && *src <= '9') && *src != '\0')
        {
            len++;
            src++;
        }
        if (len > MaxLen)
        {
            MaxLen = len;
        }

        len = 0;
        
        if (*src != '\0')
        {
            src++;
        }
    }
    return MaxLen;
}

int main()
{
    char *src = (char *)malloc(sizeof(char) * 100);
    printf("please input src: \n");
    scanf("%s", src);
    printf("src = %s\n", src);

    int MaxLen = ContinueMaxStr(src);
    printf("the MaxLen = %d\n", MaxLen);
}